home *** CD-ROM | disk | FTP | other *** search
Text File | 1987-03-09 | 1.3 KB | 47 lines | [TEXT/MPS ] |
- # UserStartUp - MPW Shell UserStartUp File
- #
- # Copyright Apple Computer, Inc. 1985, 1986
- # All Rights Reserved.
-
- # This file (UserStartUp) is executed from the StartUp file, and can be used
- # to override definitions made in StartUp, or to define additional variables,
- # exports, and aliases. UserStartUp may also be used to define menu items,
- # open windows, etc. The file should be located in the directory containing
- # the MPW Shell.
-
- alias cd directory
- alias clone duplicate
- set ask "request 'Structure Level:' "
- export ask
- if "`request -d Pascal 'Pascal or C:'`" =~ /[Pp]as≈/
- "{MPW}macros:Pas_Macros"
- else
- "{MPW}macros:c_macros"
- End
-
- set exit 0 #so confirm won't kill things on 'no'
- set scr "{MPW}scratch"; export scr
- open "{scr}"
- confirm 'Need the Rez menu?'
- if {status} == 0
- begin
- # definitions to make nesting simpler...
- set br "request 'BoundsRect? (t,l,b,r)'" ; export br
- set tit "request 'Title?'"; export tit
- set cid "request 'ID?'"; export cid
- set st "request 'String?'"; export st
- "{MPW}macros:rez_macros"
- end
- end
-
- set gloss {MPW}glossary; export gloss
- open "{gloss}"
- "{MPW}macros:nifties"
-
- set PasMatOpts "-a -k -l -n -r -@"
- export PasMatOpts
-
- Addmenu Nifties 'Formatted Hardcopy/9' ∂
- 'Pasmat "{active}" | Print -f Monaco -h -s 9 -hf Times -hs 12 -title "{active}"'
-
-